<?php
/*
	门店设置
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('setting',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('setting');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'门店设置',
		'edit'=>array(
			array('type'=>'switch','title'=>'开启门店补贴？','name'=>'storeis_open'),
			array('type'=>'string','name'=>'storered_rate','title'=>'门店补贴额度','help'=>'填写数字表示实际额度，填写百分数%表示比例'),
		)
	);
	$return['htmls']=$htmls;
	exi($return);
}

